package cat.joronya.supermanager.home;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import cat.joronya.supermanager.R;

public class AboutDialogFragment extends DialogFragment
{
	public static AboutDialogFragment newInstance()
	{
		AboutDialogFragment aboutDialogFragment = new AboutDialogFragment();
		return aboutDialogFragment;
	}
	
	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) 
	{
		Dialog dialog = null;
		AlertDialog.Builder builder;
		LayoutInflater inflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View layout = inflater.inflate(R.layout.about,null);

		builder = new AlertDialog.Builder(getActivity());
		builder.setView(layout);
		dialog = builder.create();
		return dialog;
	}
}
